package com.mybatisplus.mp;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication/*(exclude = {DataSourceAutoConfiguration.class})*/
@MapperScan("com.mybatisplus.mp.mapper")
@EnableCaching(proxyTargetClass = true)//启动缓存
@EnableAsync
public class MpApplication {
    @Autowired
    StringRedisTemplate stringRedisTemplate;


    public static void main(String[] args) {
        SpringApplication.run(MpApplication.class, args);
    }

}
